package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Workshop;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

/**
 * @author louk
 * @date 2019/11/14 15:45
 */
public interface WorkshopService {
    /**
     * 新增车间信息
     * @author chenm
     * @create 2019-07-13 15:19
     * @param workShop
     * @return
     */
    JSONObject insertWorkShop(Workshop workShop);


    /**
     * 删除车间信息
     * @author chenm
     * @create 2019-07-13 17:19
     * @param workshopIds
     * @param dataState
     * @return
     */
    JSONObject delWorkShop(Integer[] workshopIds, Integer dataState);


    /**
     * 更新
     *
     * @author chenm
     * @date 2019/07/15 13:38
     * @param workShop
     * @return com.indusfo.spc.vo.JSONObject
     */
    JSONObject updateWorkShop(Workshop workShop);


    /**
     * 查询
     *
     * @author chenm
     * @create 2019-07-13 18:27
     */
    JSONObject queryWorkShop(Workshop workShop);

    /**
     *  @create 2019-07-13 15:19
     * 根据编码查询车间
     * @param workshopCode
     * @param workShopId
     * @return
     */
    Workshop getByWorkShopCode(String workshopCode, Integer workShopId);

    /**
     * 获取车间列表
     * @return
     */
    List<Workshop> getList();

    /**
     * 检测excel导入的内容
     * @param workShop
     * @return
     */
    String checkExcelContent(Workshop workShop);
}
